﻿<!--
	@create by 
	@update by 
	@description 
-->
<el-form-q :field-data="queryFields" :buttons="queryButtons" ref="form"></el-form-q>
<div class="yu-toolBar">
    <el-button-group>
        <el-button icon="plus" @click="addFn" v-if="checkPermission('create')">新增</el-button>
        <el-button icon="edit" @click="modifyFn" v-if="checkPermission('edit')">修改</el-button>
        <el-button icon="yx-bin" @click="deleteFn" v-if="checkPermission('delete')">删除</el-button>
        <el-button icon="yx-undo2" @click="commit" v-if="checkPermission('commit')">提交</el-button>
        <el-button icon="document" @click="detailFn" v-if="checkPermission('detail')">查看</el-button>
        <!--<el-button icon="document" @click="viewAppRecords" v-if="checkPermission('viewAppRecords')">查看审批记录</el-button>-->
    </el-button-group>
</div>
<el-table-x ref="reftable" :row-index="true" :base-params="baseParams" :checkbox="true"
            :data-url="reftableDataUrl" :table-columns="tableColumns" :request-type="'POST'"></el-table-x>
<!-- 说明dialog可配置宽高属性，若不配置则宽度默认为屏幕50%，高度自适应
   width="650px" height="380px" -->
<!--<el-dialog-x :title="viewTitle[viewType]" :visible.sync="outSourcedialogVisible" width="1800px">-->
    <!--<el-form-x ref="outSourceReform"-->
               <!--:group-fields="outSourceInfoFields" :buttons="outSourceButtons"-->
               <!--:disabled="formDisabled" label-width="80px"></el-form-x>-->
<!--</el-dialog-x>-->

<!--<el-dialog-x :title="viewTitle[viewType]" :visible.sync="lawFirmDialogVisible" width="1800px">-->
    <!--<el-form-x ref="lawFirmReform"-->
               <!--:group-fields="lawFirmInfoFields" :buttons="lawFirmButtons"-->
               <!--:disabled="formDisabled" label-width="80px"></el-form-x>-->
<!--</el-dialog-x>-->

<!--<el-dialog-x :title="viewTitle[viewType]" :visible.sync="riskOrgDialogVisible" width="1800px">-->
    <!--<el-form-x ref="riskOrgReform"-->
               <!--:group-fields="riskOrgInfoFields" :buttons="riskOrgButtons"-->
               <!--:disabled="formDisabled" label-width="80px"></el-form-x>-->
<!--</el-dialog-x>-->

<el-dialog-x :title="viewTitle[viewType]" :visible.sync="dialogVisible" size="large">
    <el-form-x ref="reform"
               :group-fields="updateFields" :buttons="updateButtons"
               :disabled="formDisabled" label-width="80px"></el-form-x>
</el-dialog-x>

<el-dialog-x :title="viewTitle[viewType]" :visible.sync="dialogVisibleA" size="large">
    <el-form-x ref="reformA"
               :group-fields="updateFields"
               :disabled="formDisabledA" label-width="80px"></el-form-x>
    <div class="yu-grpButton">
        <el-button type="primary" icon="yx-undo2" @click="returnFn" >返回</el-button>
    </div>
</el-dialog-x>

<!-- <el-dialog-x :title="viewTitle[viewType]" :visible.sync="dialogVisible" width="1800px">


             <el-card style="width: 100%;" shadow="always" header="委外机构" v-show="outSource" :body-style="{ padding: '0px' }">
                 <el-form-x ref="reform" :group-fields="outSourceInfoFields" :disabled="formDisabled"
                            label-width="130px" style="padding: 12px 12px 24px 12px">
                 </el-form-x>
             </el-card>
             <div style="height: 24px"></div>
             <el-card style="width: 100%;" shadow="always" header="律师事务所" v-show="lawFirm" :body-style="{ padding: '0px' }">
                 <el-form-x ref="reform" :group-fields="lawFirmInfoFields" :disabled="formDisabled"
                            label-width="130px" style="padding: 12px 12px 24px 12px">
                 </el-form-x>
             </el-card>
             <div style="height: 24px"></div>
             <el-card style="width: 100%;" shadow="always" header="风险代理机构" v-show="riskOrg" :body-style="{ padding: '0px' }">
                 <el-form-x ref="reform" :group-fields="riskOrgInfoFields" :disabled="formDisabled"
                            label-width="130px" style="padding: 12px 12px 24px 12px">
                 </el-form-x>
             </el-card>
             <div style="height: 24px"></div>

            <el-form-x :buttons="updateButtons" ></el-form-x>

 </el-dialog-x> -->

<!-- 说明dialog可配置宽高属性，若不配置则宽度默认为屏幕50%，高度自适应 width="650px" height="380px" -->
<!-- <el-dialog-x :title="viewTitle[viewType]" :visible.sync="dialogVisible" width="650px" size="full" v-if="dialogVisible">
    <el-tabs v-model="baseTab" type="border-card">
        <el-tab-pane label="机构信息" name="first">
            <el-collapse v-model="expandCollapseName">
                <el-collapse-item title="委外机构" name="outSource">
                    <el-form-x ref="reform" :group-fields="outSourceInfoFields" :disabled="formDisabled" label-width="130px"></el-form-x>
                </el-collapse-item>
                <el-collapse-item title="律师事务所" name="lawFirm">
                    <el-form-x ref="reform" :group-fields="lawFirmInfoFields" :disabled="formDisabled" label-width="130px" ></el-form-x>
                </el-collapse-item>
                <el-collapse-item title="风险代理机构" name="riskOrg">
                    <el-form-x ref="reform" :group-fields="riskOrgInfoFields" :disabled="formDisabled" label-width="130px"></el-form-x>
                </el-collapse-item>
            </el-collapse>
        </el-tab-pane>
    </el-tabs>

    <el-form-x :buttons="updateButtons"></el-form-x>
</el-dialog-x>-->

<!--<el-dialog-x title="查看审批记录" :visible.sync="recDialogVisible" size="full">
    <el-table-x ref="viewAppRecordsTable" :row-index="false"
                :data-url="viewAppRecordsDataUrl" :table-columns="viewAppRecordsTableColumns" :request-type="'POST'"></el-table-x>
    </el-collapse-item>-->

</el-dialog-x>
</div>
